package com.qf.staff.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.staff.pojo.Supplier;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface SupplierMapper extends BaseMapper<Supplier> {
    @Update("update yu_supplier  set status = #{status}  where supplier_id = #{supplierId} ")
    int updateByStatus(Supplier supplier);

    int updateByAllStatus(@Param("ids") List<Integer> ids, @Param("status") int status);
}